
<template>

        <el-row style=" border: 1px solid #eee">
          <el-col :xs="24" :md="8" :lg="5" :sm="8" :xl="8">
          <el-aside style="background-color: rgb(238, 241, 246)" class="width" width="300px" >
    <el-menu :default-openeds="['1', '3']" :default-active="this.$route.path" router>
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>博客管理</template>
        <el-menu-item-group>
          <el-menu-item index="/main/read">写博客</el-menu-item>
          <el-menu-item index="/main/manage">博客列表管理</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-menu"></i>日志信息</template>
        <el-menu-item-group>
          <el-menu-item index="/main/log">查看日志信息</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>留言反馈</template>
        <el-menu-item-group>
          <el-menu-item index="/main/list">留言列表</el-menu-item>
          <el-menu-item index="/main/friend">友链列表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
 </el-col>
 

      <el-col  :xs="24" :md="16" :lg="19" :sm="16" :xl="16">
 
    <el-header style="text-align: right; font-size: 12px;" >
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <span>快乐涌动</span>
    </el-header>
    
   <el-main id="main" >
    <!--   <el-table :data="tableData" >
        <el-table-column prop="date" label="日期" width="140">
        </el-table-column>
        <el-table-column prop="name" label="文章" width="120">
        </el-table-column>
        <el-table-column prop="content" label="内容">
        </el-table-column>
      </el-table> -->
<router-view></router-view>
    </el-main> 
      </el-col>
        </el-row>
      

 

</template>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>

<script>
  export default {
    data() {
      const item = {
        date: '2016-05-02',
        name: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      };
      return {
        tableData: Array(20).fill(item)
      }
    }
  };
</script>
